﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: PresentBuyLogEntity.cs
// 修改时间：2020-9-8 10:40:08
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：PresentBuyLog 的实体类.
	/// </summary>
	[Table("PresentBuyLog")]
	public partial class PresentBuyLogEntity
	{
		#region Properties
		private int? _logID = 0;
		/// <summary>
		/// 编号(主键)(自增长)
		/// </summary>
		[Column("LogID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? LogID
		{
			get {return _logID;}
			set {_logID = value;}
		}
		
		private int? _productID = 0;
		/// <summary>
		/// 积分商品编号
		/// </summary>
		[Column("ProductID",TypeName="int")]
		public int? ProductID
		{
			get {return _productID;}
			set {_productID = value;}
		}
		
		private int? _userID = 0;
		/// <summary>
		/// 兑换用户编号
		/// </summary>
		[Column("UserID",TypeName="int")]
		public int? UserID
		{
			get {return _userID;}
			set {_userID = value;}
		}
		
		private System.String _msg = string.Empty;
		/// <summary>
		/// 备注
		/// </summary>
		[Column("Msg",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Msg
		{
			get {return _msg;}
			set {_msg = value;}
		}
		
		private System.Boolean _isSuccess = false;
		/// <summary>
		/// 兑换状态
		/// </summary>
		[Column("IsSuccess",TypeName="bit")]
		public System.Boolean IsSuccess
		{
			get {return _isSuccess;}
			set {_isSuccess = value;}
		}
		
		private int? _needS = 0;
		/// <summary>
		/// 所需积分
		/// </summary>
		[Column("NeedS",TypeName="int")]
		public int? NeedS
		{
			get {return _needS;}
			set {_needS = value;}
		}
		
		private DateTime? _updateTime = null;
		/// <summary>
		/// 兑换时间
		/// </summary>
		[Column("UpdateTime",TypeName="datetime")]
		public DateTime? UpdateTime
		{
			get {return _updateTime;}
			set {_updateTime = value;}
		}
		
		private int? _buyCounts = 0;
		/// <summary>
		/// 兑换数量
		/// </summary>
		[Column("BuyCounts",TypeName="int")]
		public int? BuyCounts
		{
			get {return _buyCounts;}
			set {_buyCounts = value;}
		}
		
		#endregion
	}
}
